<template>
  <el-menu class="xt-menu">
    <xt-menu-item :list="list" />
  </el-menu>
</template>

<script lang="ts">
export default {
  name: "XtMenu",
};
</script>

<script setup lang="ts">
import xtMenuItem from "../component/xt-menu-item.vue";
import { MenuType } from "@/typings";

interface PropType {
  list: MenuType[];
}

withDefaults(defineProps<PropType>(), {
  list: () => [],
});
</script>
